package school

import "fmt"

type Student struct {
	Schooler
	grade uint
	class uint
}

type StudentInterface interface {
	CommonInterface
	GetGrade()
	GetClass()
}

func (S Student) GetAge() uint {
	return S.age
}
func (S Student) GetName() string {
	return S.name
}
func (S Student) GetGender() bool {
	return S.gender
}
func (S Student) GetId() int {
	return S.id
}
func (S Student) GetGrade() uint {
	return S.grade
}
func (S Student) GetClass() uint {
	return S.class
}

//设置属性的值
func (S *Student) SetGrade(v uint) {
	S.grade = v
}
func (S *Student) SetClass(v uint) {
	S.class = v
}

func (S Student) AttendClass(subjectId uint) {
	fmt.Println(S.name + "is having " + subjects[subjectId] + " Class")
}
